<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
	.KEYW {color: #933;}
	.COMM {color: #bbb; font-style: italic;}
	.NUMB {color: #393;}
	.STRN {color: #393;}
	.REGX {color: #339;}
	.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
	</style></head><body><pre><span class='line'>  1</span> <span class="COMM">/*
<span class='line'>  2</span> 
<span class='line'>  3</span> Copyright by Greg Ross, 2008
<span class='line'>  4</span> 
<span class='line'>  5</span> This file is part of Magic Table.
<span class='line'>  6</span> 
<span class='line'>  7</span> Magic Table is free software: you can redistribute it and/or modify
<span class='line'>  8</span> it under the terms of the GNU General Public License as published by
<span class='line'>  9</span> the Free Software Foundation, either version 3 of the License, or
<span class='line'> 10</span> (at your option) any later version.
<span class='line'> 11</span> 
<span class='line'> 12</span> Magic Table is distributed in the hope that it will be useful,
<span class='line'> 13</span> but WITHOUT ANY WARRANTY; without even the implied warranty of
<span class='line'> 14</span> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
<span class='line'> 15</span> GNU General Public License for more details.
<span class='line'> 16</span> 
<span class='line'> 17</span> You should have received a copy of the GNU General Public License
<span class='line'> 18</span> along with Magic Table.  If not, see &lt;http://www.gnu.org/licenses/>.
<span class='line'> 19</span> */</span><span class="WHIT">
<span class='line'> 20</span> 
<span class='line'> 21</span> </span><span class="COMM">/**
<span class='line'> 22</span>  * This class renders cells when the fisheye feature is switched off.
<span class='line'> 23</span>  * @author Greg Ross
<span class='line'> 24</span>  * @constructor
<span class='line'> 25</span>  * @param tableModel
<span class='line'> 26</span>  * @param cellAlignment defines the alignment of text in the cell.
<span class='line'> 27</span>  * Must be CellAlignment.LEFT, CellAlignment.CENTRE or CellAlignment.RIGHT;
<span class='line'> 28</span>  * @param colourRamp the colour ramp from which the cell's back colour will be derived.
<span class='line'> 29</span>  */</span><span class="WHIT">
<span class='line'> 30</span> </span><span class="NAME">greg.ross.visualisation.DefaultCellRenderer</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">tableModel</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">cellAlignment</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">colourRamp</span><span class="PUNC">)</span><span class="WHIT">
<span class='line'> 31</span> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 32</span> 	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">colourGradient</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 33</span> 	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">defaultCellBackgroundColour</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'rgb(255, 255, 255)'</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 34</span> 	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">gridColour</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'rgb(0, 0, 0)'</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 35</span> 	
<span class='line'> 36</span> 	</span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">init</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
<span class='line'> 37</span> 	</span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 38</span> 		</span><span class="NAME">colourGradient</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">greg.ross.visualisation.TableGradientColourProvider.createGradient</span><span class="PUNC">(</span><span class="NAME">tableModel</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">colourRamp</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 39</span> 	</span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 40</span> 	
<span class='line'> 41</span> 	</span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">renderCellText</span><span class="PUNC">(</span><span class="NAME">canvasContext</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">cellValue</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">x1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">y1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">width</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">height</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">fisheyeEnabled</span><span class="PUNC">)</span><span class="WHIT">
<span class='line'> 42</span> 	</span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 43</span> 		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">cellValue</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="KEYW">return</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 44</span> 		
<span class='line'> 45</span> 		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">sValue</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">cellValue</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 46</span> 		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">font</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"sans"</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 47</span> 	  	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">fontsize</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">10</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 48</span> 		
<span class='line'> 49</span> 		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">greg.ross.visualisation.CanvasTextFunctions.measure</span><span class="PUNC">(</span><span class="NAME">font</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">fontsize</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">sValue</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">width</span><span class="WHIT"> </span><span class="PUNC">&&</span><span class="WHIT"> </span><span class="PUNC">!</span><span class="NAME">fisheyeEnabled</span><span class="PUNC">)</span><span class="WHIT"> 
<span class='line'> 50</span> 		</span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 51</span> 			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">h</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">greg.ross.visualisation.CanvasTextFunctions.descent</span><span class="PUNC">(</span><span class="NAME">font</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">fontsize</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">fontsize</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 52</span> 			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">x1</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">width</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NAME">width</span><span class="WHIT"> </span><span class="PUNC">/</span><span class="WHIT"> </span><span class="NUMB">2</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 53</span> 			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">y</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">y1</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">height</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NAME">height</span><span class="WHIT"> </span><span class="PUNC">/</span><span class="WHIT"> </span><span class="NUMB">2</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 54</span> 			
<span class='line'> 55</span> 			</span><span class="KEYW">switch</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">cellAlignment</span><span class="PUNC">)</span><span class="WHIT">
<span class='line'> 56</span> 			</span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 57</span> 				</span><span class="KEYW">case</span><span class="WHIT"> </span><span class="NAME">greg.ross.visualisation.CellAlignment.LEFT</span><span class="PUNC">:</span><span class="WHIT">
<span class='line'> 58</span> 				</span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 59</span> 					</span><span class="NAME">canvasContext.drawText</span><span class="PUNC">(</span><span class="NAME">font</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">fontsize</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">x1</span><span class="PUNC">+</span><span class="NUMB">3</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">y</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">h</span><span class="PUNC">/</span><span class="NUMB">2</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">sValue</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 60</span> 					</span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 61</span> 				</span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 62</span> 				</span><span class="KEYW">case</span><span class="WHIT"> </span><span class="NAME">greg.ross.visualisation.CellAlignment.CENTRE</span><span class="PUNC">:</span><span class="WHIT">
<span class='line'> 63</span> 				</span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 64</span> 					</span><span class="NAME">canvasContext.drawTextCenter</span><span class="PUNC">(</span><span class="NAME">font</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">fontsize</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">x</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">y</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">h</span><span class="PUNC">/</span><span class="NUMB">2</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">sValue</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 65</span> 					</span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 66</span> 				</span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 67</span> 				</span><span class="KEYW">case</span><span class="WHIT"> </span><span class="NAME">greg.ross.visualisation.CellAlignment.RIGHT</span><span class="PUNC">:</span><span class="WHIT">
<span class='line'> 68</span> 				</span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 69</span> 					</span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">x1</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">width</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">3</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 70</span> 					</span><span class="NAME">canvasContext.drawTextRight</span><span class="PUNC">(</span><span class="NAME">font</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">fontsize</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">x</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">y</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">h</span><span class="PUNC">/</span><span class="NUMB">2</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">sValue</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 71</span> 					</span><span class="KEYW">break</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 72</span> 				</span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 73</span> 			</span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 74</span> 		</span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 75</span> 	</span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 76</span> 	
<span class='line'> 77</span> 	</span><span class="NAME">init</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 78</span> 	
<span class='line'> 79</span> 	</span><span class="COMM">/**
<span class='line'> 80</span> 	 * The fisheye table calls this method to render the cell. Classes that extend a cell renderer
<span class='line'> 81</span> 	 * must implement this method.
<span class='line'> 82</span> 	 * @member greg.ross.visualisation.DefaultCellRenderer
<span class='line'> 83</span> 	 * @param canvasContext the canvas context
<span class='line'> 84</span> 	 * @param row the row index
<span class='line'> 85</span> 	 * @param column the column index
<span class='line'> 86</span> 	 * @param x1 the top-left cell X-coordinate
<span class='line'> 87</span> 	 * @param y1 the top-left cell Y-coordinate
<span class='line'> 88</span> 	 * @param width the width of the cell
<span class='line'> 89</span> 	 * @param height the height of the cell
<span class='line'> 90</span> 	 * @param cellValue the value ot be rendered in the cell
<span class='line'> 91</span> 	 * @param fisheyeEnabled true if the fisheye feature is turned on
<span class='line'> 92</span> 	 * @param barFillEnabled true if the bar-fill feature is turned on
<span class='line'> 93</span> 	 */</span><span class="WHIT">
<span class='line'> 94</span> 	</span><span class="NAME">this.drawCell</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">canvasContext</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">row</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">column</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">x1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">y1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">width</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">height</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">cellValue</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">fisheyeEnabled</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">barFillEnabled</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">rowGradientEnabled</span><span class="PUNC">)</span><span class="WHIT">
<span class='line'> 95</span> 	</span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 96</span> 		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">colr</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 97</span> 		
<span class='line'> 98</span> 		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">rowGradientEnabled</span><span class="PUNC">)</span><span class="WHIT">
<span class='line'> 99</span> 			</span><span class="NAME">colr</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">tableModel.getColourGradientForRow</span><span class="PUNC">(</span><span class="NAME">row</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>100</span> 		</span><span class="KEYW">else</span><span class="WHIT">
<span class='line'>101</span> 			</span><span class="NAME">colr</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">greg.ross.visualisation.TableGradientColourProvider.getColourFromValue</span><span class="PUNC">(</span><span class="NAME">colourGradient</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">cellValue</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">defaultCellBackgroundColour</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>102</span> 		
<span class='line'>103</span> 		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="PUNC">!</span><span class="NAME">barFillEnabled</span><span class="PUNC">)</span><span class="WHIT"> 
<span class='line'>104</span> 		</span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>105</span> 			</span><span class="NAME">canvasContext.fillStyle</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">colr</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>106</span> 			</span><span class="NAME">canvasContext.fillRect</span><span class="PUNC">(</span><span class="NAME">x1</span><span class="PUNC">+</span><span class="NUMB">0.5</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">y1</span><span class="PUNC">+</span><span class="NUMB">0.5</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">width</span><span class="PUNC">-</span><span class="NUMB">0.5</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">height</span><span class="PUNC">-</span><span class="NUMB">0.5</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>107</span> 		</span><span class="PUNC">}</span><span class="WHIT">
<span class='line'>108</span> 		</span><span class="KEYW">else</span><span class="WHIT">
<span class='line'>109</span> 		</span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>110</span> 			</span><span class="NAME">canvasContext.fillStyle</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">defaultCellBackgroundColour</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>111</span> 			</span><span class="NAME">canvasContext.fillRect</span><span class="PUNC">(</span><span class="NAME">x1</span><span class="PUNC">+</span><span class="NUMB">0.5</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">y1</span><span class="PUNC">+</span><span class="NUMB">0.5</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">width</span><span class="PUNC">-</span><span class="NUMB">0.5</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">height</span><span class="PUNC">-</span><span class="NUMB">0.5</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>112</span> 			
<span class='line'>113</span> 			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">barWidth</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">greg.ross.visualisation.TableMath.calculateBarWidth</span><span class="PUNC">(</span><span class="NAME">tableModel</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">cellValue</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">width</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">column</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>114</span> 			</span><span class="NAME">canvasContext.fillStyle</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">colr</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>115</span> 			</span><span class="NAME">canvasContext.fillRect</span><span class="PUNC">(</span><span class="NAME">x1</span><span class="PUNC">+</span><span class="NUMB">0.5</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">y1</span><span class="PUNC">+</span><span class="NUMB">0.5</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">barWidth</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">height</span><span class="PUNC">-</span><span class="NUMB">0.5</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>116</span> 		</span><span class="PUNC">}</span><span class="WHIT">
<span class='line'>117</span> 		
<span class='line'>118</span> 		</span><span class="NAME">canvasContext.strokeStyle</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">gridColour</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>119</span>         </span><span class="NAME">canvasContext.lineWidth</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>120</span> 		</span><span class="NAME">canvasContext.beginPath</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>121</span> 		</span><span class="NAME">canvasContext.moveTo</span><span class="PUNC">(</span><span class="NAME">x1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">y1</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">height</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>122</span> 		</span><span class="NAME">canvasContext.lineTo</span><span class="PUNC">(</span><span class="NAME">x1</span><span class="PUNC">+</span><span class="NAME">width</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">y1</span><span class="PUNC">+</span><span class="NAME">height</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>123</span> 		</span><span class="NAME">canvasContext.lineTo</span><span class="PUNC">(</span><span class="NAME">x1</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">width</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">y1</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>124</span> 		</span><span class="NAME">canvasContext.stroke</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>125</span> 		
<span class='line'>126</span> 		</span><span class="NAME">renderCellText</span><span class="PUNC">(</span><span class="NAME">canvasContext</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">cellValue</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">x1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">y1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">width</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">height</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">fisheyeEnabled</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>127</span> 	</span><span class="PUNC">}</span><span class="WHIT">
<span class='line'>128</span> </span><span class="PUNC">}</span><span class="WHIT">
<span class='line'>129</span> </span></pre></body></html>